package com.api.shopapi.service.impl;


import com.api.shopapi.entity.DishesPlanNoon;
import com.api.shopapi.mapper.DishesPlanNoonMapper;
import com.api.shopapi.service.DishesPlanNoonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("DishesPlanNoonServiceImplOne")
public class DishesPlanNoonServiceImplOne implements DishesPlanNoonService {

    @Autowired
    private DishesPlanNoonMapper dishesPlanNoonMapper;

    @Override
    public
    int insert(DishesPlanNoon dishesPlanNoon){
        return dishesPlanNoonMapper.insert(dishesPlanNoon);
    }

    @Override
    public
    int delete(String dishesPlanNoonCode){
        return dishesPlanNoonMapper.delete(dishesPlanNoonCode);
    }

    @Override
    public
    int update( DishesPlanNoon dishesPlanNoon){
        return dishesPlanNoonMapper.update(dishesPlanNoon);
    }

    @Override
    public
    DishesPlanNoon getByDishesPlanNoonCode(String dishesPlanNoonCode){
        return dishesPlanNoonMapper.getByDishesPlanNoonCode(dishesPlanNoonCode);
    }

    @Override
    public
    List<DishesPlanNoon> ListByDishesPlanCode(String dishesPlanCode){
        return dishesPlanNoonMapper.ListByDishesPlanCode(dishesPlanCode);
    }

}
